
<form id="form_edit"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td width="20%" align="right">编号：</td>
		<td width="80%"><input type="text" name="code" id="code" value="{[$result.code]}" size="20"></td>
	</tr>
	<tr>
		<td align="right">客户：</td>
		<td><input type="text" name="customer" id="customer" value="{[$result.customer]}" size="20" title="{[$t.customer]}"></td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td><input type="text" name="name" id="name" value="{[$result.name]}" size="32"></td>
	</tr>
	<tr>
		<td align="right">金额：</td>
		<td><input type="text" name="total" id="total" value="{[$result.total]}" size="12"> <select name='currency'
			id='currency'>
			{[html_options options=$currency_option selected=$result.currency]}
		</select></td>
	</tr>
	<tr>
		<td align="right">日期：</td>
		<td><input type="text" name="begin" id="begin" value="{[$result.begin|date_format:'%Y-%m-%d']}" size="12"></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td><textarea rows="2" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<div style="margin-top: 10px; margin-bottom: 5px; width: 660px; float: left;">
<div id="myGrid" style="width:100%;height:160px;"></div>
</div>
<table border="0">
	<tr>
		<td width="250" align="right">合计：</td>
		<td width="100">
		<div id="total_t"></div>
		</td>
		<td></td>
	</tr>
</table>

<script type='text/javascript'>
var data = {[$result.log]};
var currency_json = {[$currency]};
var currency = '{[$result.currency]}';
</script>
